<html>
    <head>
        <title><g:layoutTitle default="Grails" /></title>
        <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${createLinkTo(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />				
    </head>
    <body>
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${createLinkTo(dir:'images',file:'spinner.gif')}" alt="Spinner" />
        </div>	
        <div class="logo"><h1>Project <span class="logotype">TFC</span> <span class="logobeta">(beta)</span></h1></div>	
	<div id="nickname" class="message">
		<g:if test="${session.nickname}">You are working as: <span class="displayName"> ${session.nickname}</span>. Not you? <g:link controller="nickname" action="supply">Sign out</g:link></g:if>
		<g:else><g:form name="nickLogin" controller="nickname" action="supply">
			To receive credit, sign in: <g:textField name="nickname" /><g:hiddenField name="backUri" value="${request.forwardURI}"></g:hiddenField>
		</g:form></g:else>
	</div>
        <g:layoutBody />		
    </body>	
</html>
